/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ep.libs.implementations;

import com.vaadin.ui.ComponentContainer;
import com.vaadin.ui.VerticalLayout;
import ep.libs.interfaces.IView;

/**
 *
 * @author Spyros
 */
public abstract class AbstractView implements IView {

    protected final AbstractModule module;
    protected VerticalLayout viewLayout;

    public AbstractView(AbstractModule module) {
        this(module, null);
    }

    public AbstractView(AbstractModule module, Object[] args) {
        this.module = module;
        viewLayout = new VerticalLayout();
    }

    public AbstractModule getModule(){
        return module;
    }

    @Override
    public abstract ComponentContainer getView();
}
